package top.tangyh.lamp.care.vo.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 *  护理操作 列
 * </p>
 *
 * @author: fyh
 * @since: 2021/11/30
 */
@Data
@NoArgsConstructor
@Schema(description = "护理操作 列")
public class CareRecordColVo implements Serializable {
	@Schema(description = "自定义时间点id")
	private Long id;

	@Schema(description = "字段标题")
	private String titel;
	@Schema(description = "字段名")
	private String fieldName;
	@Schema(description = "类型，说明：时间列为time, 非时间列为text")
	private String type;
	@Schema(description = "时间轴对应时间,说明：时间戳")
	private Long mappedTime;

	@Schema(description = "是否是病人自定义时间点，说明：1--是，0--否")
	private Integer isUser ;

	public CareRecordColVo(String type, String titel, String fieldName, Long mappedTime) {
		this.type=type;
		this.mappedTime =mappedTime;
		this.titel = titel;
		this.fieldName = fieldName;
	}

	public CareRecordColVo(String type, String titel, String fieldName, Long mappedTime, Integer isUser) {
		this.type=type;
		this.mappedTime =mappedTime;
		this.titel = titel;
		this.fieldName = fieldName;
		this.isUser=isUser;
	}
}
